package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 会员服务远程调用
 *
 * @author LaiSanShan
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 会员注册
     */
    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegisterVo registerVo);

    /**
     * 会员登录
     */
    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

}
